package org.jeecg.modules.wlhy.losssetting.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 亏损免赔比例表
 * @Author: jeecg-boot
 * @Date:   2020-12-14
 * @Version: V1.0
 */
@Data
@TableName("hy_loss_proportion")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_loss_proportion对象", description="亏损免赔比例表")
public class HyLossProportion implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**所属货主*/
	@Excel(name = "所属货主", width = 15, dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
	@Dict(dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @ApiModelProperty(value = "所属货主")
    private java.lang.String customerId;
    /**货物名称*/
    @Excel(name = "货物名称", width = 15)
    @ApiModelProperty(value = "货物名称")
    private java.lang.String goodsName;
	/**亏损免赔数值*/
	@Excel(name = "亏损免赔数值", width = 15)
    @ApiModelProperty(value = "亏损免赔数值")
    private java.lang.Double lossProportion;
	/**免赔方式(1吨数2比例)*/
	@Excel(name = "免赔方式(1吨数2比例)", width = 15, dicCode = "loss_type")
	@Dict(dicCode = "loss_type")
    @ApiModelProperty(value = "免赔方式(1吨数2比例)")
    private java.lang.String lossType;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
}
